// 1、npm  i  trim  下载

// 2、require("trim")  请求加载
let trim =require("trim")

console.log(trim);//[Function: trim] { left: [Function], right: [Function] }

let newstr=trim("   a   b   b   dd  ")
console.log("("+newstr+")");//(a   b   b   dd)


let newstrleft=trim.left("   a   b   b   dd  ")
console.log("("+newstrleft+")");//(a   b   b   dd  )


let newstrright=trim.right("   a   b   b   dd  ")
console.log("("+newstrright+")");//(   a   b   b   dd)




